package com.atguigu02.memory;

/**
 * Perosn类对应的测试类
 *
 * @author 尚硅谷-宋红康
 * @create 14:38
 */
public class PersonTest {
    public static void main(String[] args) {

        Person p1 = new Person();
        p1.name = "杰克";
        p1.age = 24;
        p1.gender = '男';

        System.out.println("name = "+ p1.name +'\n'+",age =" +p1.age +",gander =" +p1.gender);

        p1.eat();
        p1.sleep(8);
        p1.interests("骑车");

        Person p2 = new Person();
        p2.name  = "露丝";
        p2.age = 18;
        p2.gender = '女';

        System.out.println("name = "+ p2.name +"\t"+",age =" +p2.age +",gander =" +p2.gender);


    }


}
